package myexchange

class Exchange {

    static constraints = {
			player(unique:'share')
    }
	
	static belongsTo = [Player,Share]
	
	Player player;
	Share share;
	int quantity;
	
	String toString() {
		return "${player} : ${share} : ${quantity}" 
	} 
}
